package com.turing.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.turing.orm.model.domain.common.BaseDo;
import io.swagger.annotations.ApiModel;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
* @Description 
* @Author livin
* @Date 2022-02-22
*/
@ApiModel(value ="")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder(toBuilder = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class User extends BaseDo<User> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("gender")
    private String gender;

    @TableField("certificate_type")
    private String certificateType;

    @TableField("id_number")
    private String idNumber;

    @TableField("phone")
    private String phone;

    @TableField("status")
    private String status;

    @TableField("created_by")
    private String createdBy;

    @TableField("created_time")
    private LocalDateTime createdTime;

    @TableField("updated_by")
    private String updatedBy;

    @TableField("updated_time")
    private LocalDateTime updatedTime;

    @TableField("account")
    private String account;

    @TableField("password")
    private String password;

    @TableField("login_type")
    private String loginType;

    @TableField("customer_id")
    private Integer customerId;

    @TableField("customer_name")
    private String customerName;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}

